package com.yashi.dao;

import java.util.List;

import com.yashi.entity.TbDepartment;

public interface TbDepartmentMapper {
	
	/**
	 * 删除用户
	 * @param id
	 * @return
	 */
    int deleteByPrimaryKey(String id);

    int insert(TbDepartment record);

    /**
     * 添加部门
     * @param record
     * @return
     */
    int insertSelective(TbDepartment record);

    TbDepartment selectByPrimaryKey(String id);

    /**
     * 更新部门
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(TbDepartment record);

    int updateByPrimaryKey(TbDepartment record);

    /**
     * App端查询所有部门
     * @return
     */
	List<TbDepartment> findDeptList();

	/**
	 * 删除部门（逻辑删除）
	 * @param department
	 * @return
	 */
	Integer deleteDept(TbDepartment department);

	/**
	 * 模糊查询
	 * @param deptName
	 * @return
	 */
	List<TbDepartment> selectDeptByName(String deptName);

	/**
	 * web端查询所有部门
	 * @return
	 */
	List<TbDepartment> findDeptList1();

}